import request from '@/utils/request'

// 查询空托盘缓存区列表
export function listBuffer(query) {
  return request({
    url: '/system_setting/consumerBuffer/list',
    method: 'get',
    params: query,
  })
}

// 查询空托盘缓存区详细
export function getBuffer(bufferId) {
  return request({
    url: '/system_setting/consumerBuffer/' + bufferId,
    method: 'get',
  })
}

// 新增空托盘缓存区
export function addBuffer(data) {
  return request({
    url: '/system_setting/consumerBuffer',
    method: 'post',
    data: data,
  })
}

// 修改空托盘缓存区
export function updateBuffer(data) {
  return request({
    url: '/system_setting/consumerBuffer',
    method: 'put',
    data: data,
  })
}

// 删除空托盘缓存区
export function delBuffer(bufferId) {
  return request({
    url: '/system_setting/consumerBuffer/' + bufferId,
    method: 'delete',
  })
}
